import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main2(String[] args) {
        Scanner scanner=new Scanner(System.in);
        float h=scanner.nextFloat();
        int n =scanner.nextInt();
        float sum = h;
        float l = 0;
        //write your code here......
        for(int i = 0; i < n; i++) {
             h = h / 2;
             sum += h * 2;
        }
        sum = sum - h * 2;
        System.out.println(String.format("%.3f",h)+" "+String.format("%.3f", sum));


    }
    public static void main1(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n;
        int sum = 0;
        double count = 0;
        //write your code here......
        while(true) {
            n = scan.nextInt();
            if(n > 0) {
                sum = sum + n;
                count++;
            }else {
                break;
            }
        }
        double avg = sum / count;
        System.out.println(String.format("%.2f",avg));


    }
    public Boolean isPrimeNumber(int number) {

        //write your code here......
        for(int i = 2; i < number; i++) {
            if(number % i == 0) {
                return false;
            }
        }
        return true;

    }
    public static void main3(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();
        int count = 0;
        //write code here......
        while(true) {
            if(num > 0) {
               num = num /10;
               count++;
            }else if(num < 0){
                System.out.print(num);
                break;
            }else {
                break;
            }
        }
        if(count > 0) {
            System.out.print(count);
        }
    }
    public static void main5(String[] args) {
        int[] ary = new int[6];
        int max = 0;
        int min = 0;
        int[] s = new int[6];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i <ary.length -1 ; i++) {
            for (int j = 0; j < ary.length-1-i; j++) {
                if(ary[j] > ary[j+1]){
                    int tmp = ary[j+1];
                    ary[j] = ary[j+1];
                    ary[j+1] = tmp;
                }
            }
        }
        max = ary[5];
        min = ary[0];
        System.out.println(max+" "+min);
    }
    public static void main4(String[] args) {
        int[] arr = new int[6];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < arr.length; i++) {
            arr[i] = scanner.nextInt();
        }
        System.out.println(Arrays.toString(arr));

        //write your code here......
        int[] arr1 = new int[6];
        for(int i = 0; i < arr1.length; i++) {
            arr1[i] = arr[arr.length-1-i];
        }

        System.out.println(Arrays.toString(arr1));
    }
}